import { RouteRecordRaw } from "vue-router";

/**
 * 路由meta信息
 */
type RoteMeta = {
  [propName: string]: any;
};

/**
 * 路由扩展配置, name, meta
 */
export type RouteItemRecord = {
  name: string;
  meta?: RoteMeta;
};

/**
 * 路由项模型：新增了name, id, meta
 */
export type RouteItem = RouteRecordRaw & RouteItemRecord & { id: string };

/**
 * 路由配置，key为路由name
 */
export type RouteConfig = {
  [key: string]: RouteItemRecord;
}
